package com.lzl.BaseClass;


import com.lzl.entity.GoodsInfo;
import com.lzl.entity.GoodsVo;


import java.util.List;
import java.util.Map;

public interface GoodsMapper {
    //resultMap：品牌，类型，sku
    public List<GoodsInfo> findById(int id);

    //跟据名称查询
    public List<GoodsInfo> findByName(String name);

    //使用map传参查询
    public List<GoodsInfo> findByParam(Map<String,Object> map);

    //使用vo查询，分页
    public List<GoodsInfo> findByVo(GoodsInfo goodsInfo);

    //用户禁用
    public int modify(int id);

    //修改
    public int update(GoodsInfo goods);

    //添加
    public int insert(GoodsInfo goods);

    List<GoodsInfo> findyByParam(Map<String, Object> map);

    List<GoodsInfo> findyByVo(GoodsVo goodsVo);

    GoodsInfo select();
}
